package String;

import java.util.Scanner;

/**
 手机号码屏蔽
 */
public class Stringtest5 {
    public static void main(String[] args) {
        //1、键盘录入手机号
        Scanner sc = new Scanner(System.in);
        System.out.println("输入手机号码");
        String tel=sc.next();

        //2、截取号码的前三位，后四位
        String before = tel.substring(0,3);   //012
        String after = tel.substring(7);

        String s = before + "****" + after;
        System.out.println(s);

    }
}
